#include "CHitSphere.h"
using namespace Content;
CHitSphere::CHitSphere(const float r)
{
  radius = r;
  pObject = createSphere(r);
  pEntity = createEntity(0.0f,0.0f,0.0f);
  pEntity->createBoundingSphere(r);
}

CHitSphere::~CHitSphere()
{
}

void CHitSphere::setColor(const int r, const int g, const int b)
{
  if (pObject)
  {
    ((IPrimitive*)pObject)->setColor(r,g,b);
  }
}
void CHitSphere::getColor(int& r, int& g, int& b)
{
  r = 0;
  g = 0;
  b = 0;
  if (pObject)
  {
    ((IPrimitive*)pObject)->getColor(r,g,b);
  }

}
